import request from '/@/utils/request';

// 公告列表
export function getNoticeList(params: object) {
	return request({
		url: '/notice/adminlist',
		method: 'get',
		params,
	});
}
//新增/修改

export function removeUser(params: object) {
	return request({
		url: '/user/delete',
		method: 'post',
		data: params,
	});
}

//新增/修改
export function changeAnnounce(params: object) {
	return request({
		url: '/notice/change',
		method: 'post',
		data: params,
	});
}

// 查询所有
export function get_all_product(params: object) {
	return request({
		url: '/newrobotProductList',
		method: 'post',
		data: params,
	});
}

// 获取卖家统计Cookie
export function get_seller_cookie(params: object) {
	return request({
		url: '/adminUser/sellerCookie',
		method: 'get',
		params,
	});
}

// 保存卖家统计Cookie
export function save_cookie_req(params: object) {
	return request({
		url: '/adminUser/saveSellerCookie',
		method: 'post',
		data: params,
	});
}
